//
//  MessageButton.m
//  ECBBusinessCamp
//
//  Created by rimi on 16/6/29.
//  Copyright © 2016年 邓毕华. All rights reserved.
//

#import "MessageButton.h"

@implementation MessageButton

#pragma mark 🌷🌷🌷life cycle🌷🌷🌷
- (instancetype)init
{
    self = [super init];
    if (self) {
        // 添加视图
        [self addSubview:self.messageLabel];
        
        // 自动布局
        [_messageLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(self).multipliedBy(0.9);
            make.centerX.equalTo(self);
            make.top.offset(SCREEN_HEIGHT * 0.015);
        }];
    }
    return self;
}

#pragma mark 🌷🌷🌷getters and setters🌷🌷🌷
- (UILabel *)messageLabel {
    if (!_messageLabel) {
        _messageLabel = [[UILabel alloc] init];
        _messageLabel.numberOfLines = 0;
        _messageLabel.textColor = [UIColor blackColor];
        _messageLabel.font = [UIFont systemFontOfSize:20];
    }
    return _messageLabel;
}

@end
